<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEnBannerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('en_banner', function(Blueprint $table)
        {
            $table->increments('id');
            $table->integer('img_id')->default(0)->comment('banner图片');
            $table->string('title',64)->nullable()->comment('标题');
            $table->string('desc')->nullable()->comment('描述');
            $table->string('link_url')->nullable()->comment('链接');
            $table->integer('sort')->default(0)->comment('排序');
            $table->integer('status')->default(0)->comment('状态，0:隐藏，1:显示');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
